package com.hydl.power.controller;

import com.hydl.power.aop.annotation.LogAnnotation;
import com.hydl.power.mapper.DeviceMapper;
import com.hydl.power.mapper.PowerRoomMapper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Api(value = "OverViewController",tags = "数据总览")
@RestController
@RequestMapping("/overView")
public class OverViewController {
    @Autowired
    private PowerRoomMapper powerRoomMapper;


    // @LogAnnotation(module = "数据总览",description = "配电房总览")
    @ApiOperation("配电房总览")
    @GetMapping("/powerRoomCount")
    public  int powerRoomCount(){
      int res =  powerRoomMapper.selectCount();

        return res;
    }

}
